package ch08.demo;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class DemoTest {
//    demo4 多个参数方式
    ApplicationContext cxt=new ClassPathXmlApplicationContext(
            "applicationContext.xml","applicationContext-dao.xml","applicationContext-service.xml");

//    数组参数方式
    String[] configs={"applicationContext.xml","applicationContext-dao.xml","applicationContext-service.xml"};
    ApplicationContext ctx=new ClassPathXmlApplicationContext(configs);

    //通配符方式
    ApplicationContext context=new ClassPathXmlApplicationContext("applicationContext*.xml");
}
